package com.ruoyi.quartz.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;

/**
 * 定时任务调度日志对象 sys_job_log
 * 
 * @author ruoyi
 * @date 2022-08-18
 */
public class SysJobLog extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 任务日志ID */
    private Long jobLogId;

    /** 任务ID */
    @Excel(name = "任务ID")
    private Long jobId;

    /** 任务名称 */
    @Excel(name = "任务名称")
    private String jobName;

    /** 任务组名 */
    @Excel(name = "任务组名")
    private String jobGroup;

    /** 调用目标字符串 */
    @Excel(name = "调用目标字符串")
    private String invokeTarget;

    /** 日志信息 */
    @Excel(name = "日志信息")
    private String jobMessage;

    /** 执行状态（0正常 1失败） */
    @Excel(name = "执行状态", readConverterExp = "0=正常,1=失败")
    private String status;

    /** 异常信息 */
    @Excel(name = "异常信息")
    private String exceptionInfo;

    /** 流程ID */
    @Excel(name = "流程ID")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long flowId;

    /** 流程名称 */
    @Excel(name = "流程名称")
    private String flowName;

    /** 流程编码 */
    @Excel(name = "流程编码")
    private String flowCode;

    /** 流程开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "流程开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startDate;

    /** 流程结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "流程结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endDate;

    /** 耗用时间 */
    @Excel(name = "耗用时间")
    private Long runTime;

    /** 成功条数 */
    @Excel(name = "成功条数")
    private Long successCnt;

    /** 失败条数 */
    @Excel(name = "失败条数")
    private Long errorCnt;

    /** 总条数 */
    @Excel(name = "总条数")
    private Long totalCnt;

    public void setJobLogId(Long jobLogId) 
    {
        this.jobLogId = jobLogId;
    }

    public Long getJobLogId() 
    {
        return jobLogId;
    }
    public void setJobId(Long jobId) 
    {
        this.jobId = jobId;
    }

    public Long getJobId() 
    {
        return jobId;
    }
    public void setJobName(String jobName) 
    {
        this.jobName = jobName;
    }

    public String getJobName() 
    {
        return jobName;
    }
    public void setJobGroup(String jobGroup) 
    {
        this.jobGroup = jobGroup;
    }

    public String getJobGroup() 
    {
        return jobGroup;
    }
    public void setInvokeTarget(String invokeTarget) 
    {
        this.invokeTarget = invokeTarget;
    }

    public String getInvokeTarget() 
    {
        return invokeTarget;
    }
    public void setJobMessage(String jobMessage) 
    {
        this.jobMessage = jobMessage;
    }

    public String getJobMessage() 
    {
        return jobMessage;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setExceptionInfo(String exceptionInfo) 
    {
        this.exceptionInfo = exceptionInfo;
    }

    public String getExceptionInfo() 
    {
        return exceptionInfo;
    }
    public void setFlowId(Long flowId) 
    {
        this.flowId = flowId;
    }

    public Long getFlowId() 
    {
        return flowId;
    }
    public void setFlowName(String flowName) 
    {
        this.flowName = flowName;
    }

    public String getFlowName() 
    {
        return flowName;
    }
    public void setFlowCode(String flowCode) 
    {
        this.flowCode = flowCode;
    }

    public String getFlowCode() 
    {
        return flowCode;
    }
    public void setStartDate(Date startDate) 
    {
        this.startDate = startDate;
    }

    public Date getStartDate() 
    {
        return startDate;
    }
    public void setEndDate(Date endDate) 
    {
        this.endDate = endDate;
    }

    public Date getEndDate() 
    {
        return endDate;
    }
    public void setRunTime(Long runTime) 
    {
        this.runTime = runTime;
    }

    public Long getRunTime() 
    {
        return runTime;
    }
    public void setSuccessCnt(Long successCnt) 
    {
        this.successCnt = successCnt;
    }

    public Long getSuccessCnt() 
    {
        return successCnt;
    }
    public void setErrorCnt(Long errorCnt) 
    {
        this.errorCnt = errorCnt;
    }

    public Long getErrorCnt() 
    {
        return errorCnt;
    }
    public void setTotalCnt(Long totalCnt) 
    {
        this.totalCnt = totalCnt;
    }

    public Long getTotalCnt() 
    {
        return totalCnt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("jobLogId", getJobLogId())
            .append("jobId", getJobId())
            .append("jobName", getJobName())
            .append("jobGroup", getJobGroup())
            .append("invokeTarget", getInvokeTarget())
            .append("jobMessage", getJobMessage())
            .append("status", getStatus())
            .append("exceptionInfo", getExceptionInfo())
            .append("createTime", getCreateTime())
            .append("flowId", getFlowId())
            .append("flowName", getFlowName())
            .append("flowCode", getFlowCode())
            .append("startDate", getStartDate())
            .append("endDate", getEndDate())
            .append("runTime", getRunTime())
            .append("successCnt", getSuccessCnt())
            .append("errorCnt", getErrorCnt())
            .append("totalCnt", getTotalCnt())
            .toString();
    }
}